//
//  RPopAlertViewController.m
//  Riji
//
//  Created by liujianlong on 2022/8/18.
//

#import "RPopAlertViewController.h"

@interface RPopAlertViewController ()<UITextFieldDelegate>

@end

@implementation RPopAlertViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}
- (IBAction)enterAction:(UIButton *)sender {
    if (self.enterBlock) {
        self.enterBlock(self.input.hidden ? @"" : self.input.text);
    }
    [self dismissViewControllerAnimated:NO completion:nil];
}

- (IBAction)cancelAction:(UIButton *)sender {
    [self dismissViewControllerAnimated:NO completion:nil];
}
#pragma mark - UITextField
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
    return YES;
}
@end
